# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-boxes
pkgver=3.36.5
pkgrel=0
pkgdesc="Virtualization made simple"
url="https://wiki.gnome.org/Apps/Boxes"
# https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/testing/gnome-boxes/gnome-boxes-3.34.0-r0.log
arch="all !ppc64le !mips !mips64" # blocked by webkit2gtk on mips
license="GPL-2.0-only"
depends="libvirt-daemon"
makedepends="meson vala libarchive-dev glib-dev gtk+3.0-dev gtk-vnc-dev
	libosinfo-dev libsecret-dev libsoup-dev libusb-dev libvirt-glib-dev
	libxml2-dev spice-gtk-dev tracker-dev vte3-dev webkit2gtk-dev
	libgudev-dev freerdp-dev itstool"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-boxes/${pkgver%.*}/gnome-boxes-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="ed5b844bbfbf420f58fa1ebc465ab971ef7733d6e08c2e2fb31980f76c7a60f8b6aaf91eb4ed392c5aa0de1a66d7d86ef212bc69806229795aade3f75d1f6549  gnome-boxes-3.36.5.tar.xz"
